package com.yunshang.shoppingmall.mapper;

import com.yunshang.shoppingmall.entity.Area;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AreaMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);

    List<Area> selectListAll();
    List<Area> selectArea(@Param("parentId") int parentId, @Param("level") int level);
    List<Area> selectAreaList(@Param("parentId") int parentId, @Param("level") int level);
}